package model;

/**.
 * Class for all the rating of a movie
 * @author jaubertbenjamin
 *
 */
public class Rating {

    /**.
     *  IMDB rating
     */
    private float imdbRating;

    /**.
     * Rotten Tomatoes rating
     */
    private float tomatoMeter;

    /**.
     * Rotten Tomatoes rating image
     */
    private String tomatoImage;

    /**.
     * Written critic
     */
    private String critic;

    /**.
     * Rotten Tomatoes user rating
     */
    private float tomatoUserMeter;

    /**.
     * get the IMDB rating
     * @return IMDB rating
     */
    public final float getImdbRating() {
       return imdbRating;
    }

    /**.
     * set the imdb rating
     * @param newImdbRating imdb rating
     */
    public final void setImdbRating(final float newImdbRating) {
       this.imdbRating = newImdbRating;
    }

    /**.
     * get the rotten tomatoes rating
     * @return rotten tomatoes rating
     */
    public final float getTomatoMeter() {
       return tomatoMeter;
    }

    /**.
     * set the rotten tomatoes rating
     * @param newTomatoMeter rotten tomatoes rating
     */
    public final void setTomatoMeter(final float newTomatoMeter) {
       this.tomatoMeter = newTomatoMeter;
    }

    /**.
     * get the rotten tomatoes rating image
     * @return the image url
     */
    public final String getTomatoImage() {
       return tomatoImage;
    }

    /**.
     * set the rotten tomatoes rating image
     * @param newTomatoImage the image name
     */
    public final void setTomatoImage(final String newTomatoImage) {
       this.tomatoImage = newTomatoImage;
    }

    /**.
     * get the critic
     * @return critic
     */
    public final String getCritic() {
      return critic;
    }

    /**.
     * set the critic
     * @param newCritic critic
     */
    public final void setCritic(final String newCritic) {
       this.critic = newCritic;
    }

    /**.
     * get the user rating in rotten tomatoes
     * @return user rating
     */
    public final float getTomatoUserMeter() {
      return tomatoUserMeter;
    }

    /**.
     * set the user rating in rotten tomatoes
     * @param userRating user rating
     */
    public final void setTomatoUserMeter(final float userRating) {
       this.tomatoUserMeter = userRating;
    }

}
